
package com.ruoyi.keep.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 团课课程管理对象 team_class
 *
 * @author zsq
 * @date 2024-08-13
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TeamClass extends BaseEntity
{
    @TableField(exist = false)
    private Teacher teacher;
    @TableField(exist = false)
    private FitnessGym fitnessGym;

    private static final long serialVersionUID = 1L;

    /** id */
    @TableId
    private Long id;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String className;

    /** 课程图片 */
    @Excel(name = "课程图片")
    private String classImage;

    /** 教练id */
    @Excel(name = "教练id")
    private Long coachId;

    /** 课程开始时间 */
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "课程开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 课程结束时间 */
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "课程结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 可预约人数 */
    @Excel(name = "可预约人数")
    private Long maxAttendees;

    /** 开课最低人数 */
    @Excel(name = "开课最低人数")
    private Long minAttendees;

    /** 课程现价 */
    @Excel(name = "课程现价")
    private Long currentPrice;

    /** 课程原价 */
    @Excel(name = "课程原价")
    private Long originalPrice;

    /** 课程介绍 */
    @Excel(name = "课程介绍")
    private String description;

    /** 健身馆id */
    @Excel(name = "健身馆id")
    private Long gymId;

    /** 0正常，1删除 */
    private Long del;

}
